package com.gpt.article.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 功能参数对象 gpt_fun_prompts
 * 
 * @author zhuzi
 * @date 2023-11-23
 */
public class GptFunPrompts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 扮演角色 */
    @Excel(name = "扮演角色")
    private String systemRole;

    /** 使用模型 */
    @Excel(name = "使用模型")
    private String useModel;

    /** 随机性 */
    @Excel(name = "随机性")
    private Float temperature;

    /** 核采样 */
    @Excel(name = "核采样")
    private Float topP;

    /** 单次回复限制 */
    @Excel(name = "单次回复限制")
    private Integer maxTokens;

    /** 话题新鲜度 */
    @Excel(name = "话题新鲜度")
    private Float presencePenalty;

    /** 频率惩罚度 */
    @Excel(name = "频率惩罚度")
    private Float frequencyPenalty;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSystemRole(String systemRole) 
    {
        this.systemRole = systemRole;
    }

    public String getSystemRole() 
    {
        return systemRole;
    }
    public void setUseModel(String useModel) 
    {
        this.useModel = useModel;
    }

    public String getUseModel() 
    {
        return useModel;
    }
    public void setTemperature(Float temperature)
    {
        this.temperature = temperature;
    }

    public Float getTemperature()
    {
        return temperature;
    }
    public void setTopP(Float topP)
    {
        this.topP = topP;
    }

    public Float getTopP()
    {
        return topP;
    }
    public void setMaxTokens(Integer maxTokens) 
    {
        this.maxTokens = maxTokens;
    }

    public Integer getMaxTokens() 
    {
        return maxTokens;
    }
    public void setPresencePenalty(Float presencePenalty)
    {
        this.presencePenalty = presencePenalty;
    }

    public Float getPresencePenalty()
    {
        return presencePenalty;
    }
    public void setFrequencyPenalty(Float frequencyPenalty)
    {
        this.frequencyPenalty = frequencyPenalty;
    }

    public Float getFrequencyPenalty()
    {
        return frequencyPenalty;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("systemRole", getSystemRole())
            .append("useModel", getUseModel())
            .append("temperature", getTemperature())
            .append("topP", getTopP())
            .append("maxTokens", getMaxTokens())
            .append("presencePenalty", getPresencePenalty())
            .append("frequencyPenalty", getFrequencyPenalty())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
